#ifndef __OUTPUT_TASK_H
#define __OUTPUT_TASK_H

#include "gd32e23x.h"
#include <stdio.h>
#include "FreeRTOS.h"
#include "task.h"
#include "app_task.h"
#include "bsp_gpio.h"
#include "bsp_pwm.h"
#include "main.h"
#define PUMP_stop()  timer_channel_output_pulse_value_config(TIMER2, TIMER_CH_0, 0);
#define VALVA_AEROFLUXUS_START()     {PUMP_stop();valva_aerofluxus();}

typedef enum
{
    PUMP_INIT,
    PUMP_START,
    PUMP_HOLD,
    PUMP_END
}pump_state;


typedef enum
{
    VALVA_CTRL_OFF= 0,
    VALVA_CTRL_ON
}VALVA_CTRL;

void output_task_init(void);
void output_task_deinit(void);
void valva_aerofluxus(void);

#endif //__OUTPUT_TASK_H